package com.design.state.order;

class Order {
    private OrderState currentState;

    public Order() {
        currentState = new PendingPaymentState();
    }

    public void setState(OrderState state) {
        currentState = state;
    }

    public void process() {
        currentState.process(this);
    }
}
